Create Table Tb_Event
(
  Event_Id     Number(20,0) not null,
  Event_Level  Nvarchar2(20),
  Ticket_Id    Nvarchar2(20),
  Event_Source Nvarchar2(50),
  Host_Id       Nvarchar2(50),
  Begin_Time   Date,
  Event_Desc   Nvarchar2(2000),
  Status       Nvarchar2(20),
  App_Name     Nvarchar2(50),
  App_Code     Nvarchar2(50),
  App_Level     integer,
  Sync_Date Date,
  Update_Date Date,
  Constraint Tb_Event Primary Key
  (
    Event_Id
  )
);

Create Table Tb_Event_Temp
(
  Id       Number(20) not null,
  Event_Id     Number(20,0),
  Event_Level  Nvarchar2(20),
  Ticket_Id    Nvarchar2(20),
  Event_Source Nvarchar2(50),
  Host_Id       Nvarchar2(50),
  Begin_Time   Date,
  Event_Desc   Nvarchar2(2000),
  Status       Nvarchar2(20),
  App_Name     Nvarchar2(50),
  App_Code     Nvarchar2(50),
  App_Level     integer,
  Constraint Tb_Event_Temp Primary Key
  (
    Id
  )
);


create sequence Tb_Event_Temp_Seq
;
